package com.xinjiang.electricpower.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;

/**
 * @author feizhao
 * @date 2022/11/17
 * @apiNote 工单预警VO类
 */
@Data
@NoArgsConstructor
@ToString
@ApiModel("工单预警VO类")
public class MyEarlyWarningVO {
    /**
     * 工单id
     */
    @ApiModelProperty(value = "工单id")
    private String id;
    /**
     * 预警名称
     */
    @Excel(name = "预警名称")
    @ApiModelProperty(value = "预警名称")
    private String appYjmc;
    /**
     * 所属网格
     */
   // @Excel(name = "预警名称")
    @ApiModelProperty(value = "所属网格")
    private String orgName;
    /**
     * 预警代码
     */
    @ApiModelProperty(value = "预警代码")
    private String appYjdm;
    /**
     * 工单号
     */
    @Excel(name = "工单编号")
    @ApiModelProperty(value = "工单号")
    private String appNo;
    /**
     * 预警类型
     */
    @Excel(name = "预警类型",readConverterExp = "0=工单,1=数据")
    @ApiModelProperty(value = "预警类型")
    private String appYjxl;
    /**
     * 预警内容
     */
    @ApiModelProperty(value = "预警内容")
    private String yjContent;
    /**
     * 工单类型
     */
    @Excel(name = "工单类型")
    @ApiModelProperty(value = "工单类型")
    private String appTypeCode;
    /**
     * 预警类型
     */
    @Excel(name = "紧急级别" , readConverterExp = "1=一般,2=紧急,4=非常紧急,5=不紧急")
    @ApiModelProperty(value = "紧急级别")
    private String priority;
    /**
     * 网格经理
     */
    //@Excel(name = "网格经理")
    @ApiModelProperty(value = "网格经理")
    private String assigner;

    @Excel(name = "网格经理")
    @ApiModelProperty(value = "网格经理名称")
    private String assignerName;

    /**
     * 台区编号
     */
    @Excel(name = "台区编号")
    @ApiModelProperty(value = "台区编号")
    private String tgNo;
    /**
     * 台区名称
     */
    @Excel(name = "台区名称")
    @ApiModelProperty(value = "台区名称")
    private String tgName;
    /**
     * 用户号
     */
    @Excel(name = "用户号")
    @ApiModelProperty(value = "用户号")
    private String consNo;
    /**
     * 用户名称
     */
    @Excel(name = "用户名称")
    @ApiModelProperty(value = "用户名称")
    private String consName;
    /**
     * 工单内容
     */
    @Excel(name = "工单内容")
    @ApiModelProperty(value = "工单内容")
    private String content;
    /**
     * 更新时间
     */
    @Excel(name = "更新时间",dateFormat="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime tjTime;



    @Excel(name = "预警时间",dateFormat="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "预警时间")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime handleTime;

    /**
     * 系统时间
     */
    @Excel(name = "系统时间",dateFormat="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "系统时间")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime systemTime;
    /**
     * 预警是否解除
     */
    @Excel(name = "预警是否解除")
    private String isWarning;
    /**
     * 距今时间
     */
    @ApiModelProperty(value = "距今时间")
    private String sinceNow;
    /**
     * 工单状态
     */
    @Excel(name = "处理状态" , readConverterExp = "0=待处理,1=已处理")
    @ApiModelProperty(value = "处理状态")
    private int processingStatus;
}
